.class Lcom/estrongs/android/pop/app/filetransfer/p$c;
.super Ljava/lang/Thread;
.source "WifiScanUtil.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/filetransfer/p;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "c"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/filetransfer/p;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/filetransfer/p;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    const/16 v0, 0x2000

    :try_start_0
    new-array v1, v0, [B

    .line 1
    new-instance v2, Ljava/net/DatagramPacket;

    invoke-direct {v2, v1, v0}, Ljava/net/DatagramPacket;-><init>([BI)V

    .line 2
    :cond_0
    :goto_0
    iget-object v3, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/filetransfer/p;->e(Lcom/estrongs/android/pop/app/filetransfer/p;)Lcom/estrongs/android/pop/app/filetransfer/p$c;

    move-result-object v3

    if-eqz v3, :cond_3

    .line 3
    invoke-virtual {v2, v0}, Ljava/net/DatagramPacket;->setLength(I)V

    .line 4
    iget-object v3, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/filetransfer/p;->d(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/net/MulticastSocket;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/net/MulticastSocket;->receive(Ljava/net/DatagramPacket;)V

    .line 5
    iget-object v3, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/filetransfer/p;->e(Lcom/estrongs/android/pop/app/filetransfer/p;)Lcom/estrongs/android/pop/app/filetransfer/p$c;

    move-result-object v3

    if-nez v3, :cond_1

    goto :goto_1

    .line 6
    :cond_1
    new-instance v3, Ljava/lang/String;

    invoke-virtual {v2}, Ljava/net/DatagramPacket;->getLength()I

    move-result v4

    const/4 v5, 0x0

    invoke-direct {v3, v1, v5, v4}, Ljava/lang/String;-><init>([BII)V

    .line 7
    iget-object v4, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/filetransfer/p;->b(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2}, Ljava/net/DatagramPacket;->getAddress()Ljava/net/InetAddress;

    move-result-object v6

    invoke-virtual {v6}, Ljava/net/InetAddress;->getHostAddress()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    goto :goto_0

    .line 8
    :cond_2
    new-instance v4, Les/sl;

    invoke-direct {v4, v3}, Les/sl;-><init>(Ljava/lang/String;)V

    .line 9
    iget-object v3, v4, Les/sl;->c:Ljava/lang/String;

    const-string v6, "receive"

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 10
    iget-object v3, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/filetransfer/p;->f(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/util/Map;

    move-result-object v3

    iget-object v6, v4, Les/sl;->b:Ljava/lang/String;

    invoke-interface {v3, v6}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 11
    new-instance v3, Les/ol;

    invoke-direct {v3}, Les/ol;-><init>()V

    .line 12
    iget-object v6, v4, Les/sl;->b:Ljava/lang/String;

    iput-object v6, v3, Les/ol;->d:Ljava/lang/String;

    .line 13
    iget-object v6, v4, Les/sl;->a:Ljava/lang/String;

    iput-object v6, v3, Les/ol;->c:Ljava/lang/String;

    .line 14
    iput-boolean v5, v3, Les/ol;->a:Z

    const/4 v5, 0x0

    .line 15
    iput-object v5, v3, Les/ol;->e:Ljava/lang/String;

    .line 16
    iget-object v5, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v5}, Lcom/estrongs/android/pop/app/filetransfer/p;->f(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/util/Map;

    move-result-object v5

    iget-object v4, v4, Les/sl;->b:Ljava/lang/String;

    invoke-interface {v5, v4, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 17
    iget-object v4, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/filetransfer/p;->g(Lcom/estrongs/android/pop/app/filetransfer/p;)Lcom/estrongs/android/pop/app/filetransfer/p$d;

    move-result-object v4

    invoke-interface {v4, v3}, Lcom/estrongs/android/pop/app/filetransfer/p$d;->a(Les/ol;)V

    .line 18
    iget-object v4, p0, Lcom/estrongs/android/pop/app/filetransfer/p$c;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-virtual {v4, v3}, Lcom/estrongs/android/pop/app/filetransfer/p;->a(Les/ol;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v0

    .line 19
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_3
    :goto_1
    return-void
.end method
